Conversation
|
✅ With the latest revision this PR passed the C/C++ code formatter. |
H-G-Hristov
force-pushed
the
hgh/libcxx/P3059R2-Making-user-defined-constructors-of-view-iterators-sentinels-private
branch
2 times, most recently
from
July 17, 2026 18:28
7499890 to
8284cc0
Compare
H-G-Hristov
force-pushed
the
hgh/libcxx/P3059R2-Making-user-defined-constructors-of-view-iterators-sentinels-private
branch
from
July 20, 2026 09:28
c70379e to
19f8cb6
Compare
llvm-upstreamsync Bot
pushed a commit
to qualcomm/cpullvm-toolchain
that referenced
this pull request
Jul 20, 2026
H-G-Hristov
added a commit
to H-G-Hristov/llvm-project
that referenced
this pull request
Jul 20, 2026
As a pre-requisite for llvm#193891
Zingam
pushed a commit
that referenced
this pull request
Jul 20, 2026
As a pre-requisite for #193891
H-G-Hristov
force-pushed
the
hgh/libcxx/P3059R2-Making-user-defined-constructors-of-view-iterators-sentinels-private
branch
from
July 20, 2026 21:04
56482d8 to
7c2c8f1
Compare
llvm-upstreamsync Bot
pushed a commit
to qualcomm/cpullvm-toolchain
that referenced
this pull request
Jul 20, 2026
…ests (#210687) As a pre-requisite for llvm/llvm-project#193891
llvm-sync Bot
pushed a commit
to arm/arm-toolchain
that referenced
this pull request
Jul 20, 2026
…ests (#210687) As a pre-requisite for llvm/llvm-project#193891
H-G-Hristov
force-pushed
the
hgh/libcxx/P3059R2-Making-user-defined-constructors-of-view-iterators-sentinels-private
branch
from
July 21, 2026 18:49
f0e3fd0 to
95ea87f
Compare
H-G-Hristov
force-pushed
the
hgh/libcxx/P3059R2-Making-user-defined-constructors-of-view-iterators-sentinels-private
branch
from
July 22, 2026 06:16
95ea87f to
db256d5
Compare
Contributor
|
The current CI failures appear unrelated. |
Zingam
marked this pull request as ready for review
July 22, 2026 07:58
H-G-Hristov
force-pushed
the
hgh/libcxx/P3059R2-Making-user-defined-constructors-of-view-iterators-sentinels-private
branch
from
July 22, 2026 07:59
78f944f to
98ad281
Compare
llvm-upstreamsync Bot
pushed a commit
to qualcomm/cpullvm-toolchain
that referenced
this pull request
Jul 22, 2026
….pass.cpp` (#211252) As a pre-requisite to: llvm/llvm-project#193891
llvm-sync Bot
pushed a commit
to arm/arm-toolchain
that referenced
this pull request
Jul 22, 2026
….pass.cpp` (#211252) As a pre-requisite to: llvm/llvm-project#193891
H-G-Hristov
force-pushed
the
hgh/libcxx/P3059R2-Making-user-defined-constructors-of-view-iterators-sentinels-private
branch
from
July 30, 2026 10:03
034d1ad to
f5c82b2
Compare
frederick-vs-ja
approved these changes
Jul 30, 2026
Contributor
|
@frederick-vs-ja Thank you. I'd like to do an NFC follow-up to this PR to use concepts, instead of type traits consistently and add the necessary includes, which are missing here and there too. |
H-G-Hristov
deleted the
hgh/libcxx/P3059R2-Making-user-defined-constructors-of-view-iterators-sentinels-private
branch
July 30, 2026 15:33
Open
12 tasks
llvm-upstreamsync Bot
pushed a commit
to qualcomm/cpullvm-toolchain
that referenced
this pull request
Jul 31, 2026
… after P3050 merge (#213062) Consistency improvements and other small tweaks. A follow-up to llvm/llvm-project#193891 - the changes were deferred to reduce the size of an already large and approved PR.
nekoshirro
pushed a commit
to nekoshirro/Alchemist-LLVM
that referenced
this pull request
Aug 1, 2026
…0 merge (#213062) Consistency improvements and other small tweaks. A follow-up to llvm/llvm-project#193891 - the changes were deferred to reduce the size of an already large and approved PR. Signed-off-by: Hafidz Muzakky <ais.muzakky@gmail.com>
frederik-h
pushed a commit
to frederik-h/llvm-project
that referenced
this pull request
Aug 3, 2026
…0 merge (llvm#213062) Consistency improvements and other small tweaks. A follow-up to llvm#193891 - the changes were deferred to reduce the size of an already large and approved PR.
llvm-sync Bot
pushed a commit
to arm/arm-toolchain
that referenced
this pull request
Aug 3, 2026
… after P3050 merge (#213062) Consistency improvements and other small tweaks. A follow-up to llvm/llvm-project#193891 - the changes were deferred to reduce the size of an already large and approved PR.
jgreenbaum
pushed a commit
to jgreenbaum/llvm-project
that referenced
this pull request
Aug 3, 2026
…erators/sentinels private (llvm#193891) Implements https://wg21.link/P3059R2 (DR) Closes llvm#189599 1. Made constructors of iterator and sentinel types of the following views private: - `iota_view` - `basic_istream_view` - `filter_view` - `transform_view` - `take_view` - `take_while_view` - `join_view` - `lazy_split_view` - `split_view` - `elements_view` 2. Updated all relevant tests to fix the usages of the now private constructor, including: 1. Removed now obsolete tests (files and cases). 2. Updated all relevant tests to get the iterators and the sentinels via `begin()` and `end()`, wherever applicable . 3. Added test cases to confirm that P3059R2 was implemented properly. 4. Minor other (necessary) tweaks. --------- Co-authored-by: Hristo Hristov <zingam@outlook.com> Co-authored-by: A. Jiang <de34@live.cn>
jgreenbaum
pushed a commit
to jgreenbaum/llvm-project
that referenced
this pull request
Aug 3, 2026
…0 merge (llvm#213062) Consistency improvements and other small tweaks. A follow-up to llvm#193891 - the changes were deferred to reduce the size of an already large and approved PR.
tfzee
pushed a commit
to tfzee/llvm-project
that referenced
this pull request
Aug 6, 2026
…0 merge (llvm#213062) Consistency improvements and other small tweaks. A follow-up to llvm#193891 - the changes were deferred to reduce the size of an already large and approved PR.
frederick-vs-ja
pushed a commit
that referenced
this pull request
Aug 13, 2026
) The previous test was dereferencing `begin()` iterator on empty view which is UB, because `begin() == end()`. A new test case was suggested in a post-merge feedback in #193891, which verifies LWG3568 through constant evaluation. Such a `constexpr` `basic_istream_view` variable can only be created if it is completely initialized, including its exposition-only _`value_`_ member. The existing test case is changed to use a non-empty stream and a testing class type for which `operator>>` is no-op. The state of the class object stored in `basic_istream_view` is unchanged even after the initial `operator>>` call. This avoids dereferencing a past-the-end iterator while testing LWG3568.
zhangweize9-cyber
pushed a commit
to zhangweize9-cyber/llvm-project
that referenced
this pull request
Aug 16, 2026
…#215589) The previous test was dereferencing `begin()` iterator on empty view which is UB, because `begin() == end()`. A new test case was suggested in a post-merge feedback in llvm#193891, which verifies LWG3568 through constant evaluation. Such a `constexpr` `basic_istream_view` variable can only be created if it is completely initialized, including its exposition-only _`value_`_ member. The existing test case is changed to use a non-empty stream and a testing class type for which `operator>>` is no-op. The state of the class object stored in `basic_istream_view` is unchanged even after the initial `operator>>` call. This avoids dereferencing a past-the-end iterator while testing LWG3568.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements https://wg21.link/P3059R2 (DR)
Closes #189599
iota_viewbasic_istream_viewfilter_viewtransform_viewtake_viewtake_while_viewjoin_viewlazy_split_viewsplit_viewelements_viewbegin()andend(), wherever applicable .